// JavaScript Document
function Computer(){
	this.IPAddress = "";
	this.MACID = "";
	this.PCName = "";
	this.CPUID = "";
	this.ProtocolName = "";
	this.LogDrvName = "";
	this.HaveInfo = "0";
	this.ErrMsg = "";
	var cltObj = new ActiveXObject("MagEnvironment.MagComputerInfoCtl");
	if (!cltObj || !cltObj.HasInfo){
	   this.ErrMsg = "\u9519\u8bef\u4fe1\u606f\uff1a\u63a7\u4ef6\u672a\u6b63\u786e\u6ce8\u518c!";
	}else if(cltObj.HasInfo){
	   this.HaveInfo = "1";
	   this.IPAddress = cltObj.IPs;
	   if(this.IPAddress == null){
		  this.IPAddress = "";
	   }
	   this.MACID = cltObj.MacAddrs;
	   if(this.MACID == null){
		  this.MACID = "";
	   }
	   this.PCName = cltObj.HostNames;
	   if(this.PCName == null){
		  this.PCName = "";
	   }
	   this.CPUID = cltObj.CpuIDs;
	   if(this.CPUID == null){
		  this.CPUID = "";
	   }
	   this.ProtocolName = cltObj.NetWorkInfo;
	   if(this.ProtocolName == null){
		  this.ProtocolName = "";
	   }
	   this.LogDrvName = cltObj.LogicDriverInfo;
	   if(this.LogDrvName == null){
		  this.LogDrvName = "";
	   }	
	}else{
		this.ErrMsg = '\u9519\u8bef\u4fe1\u606f\uff1a' + cltObj.ErMsg;	
	}
}